<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<html>
	<head>
		<title>订单管理</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
	</head>
<%@ include file="/comm.jsp"%>
	<style type="text/css">
<!--
fieldset {
	padding: 10px;
	margin: 10px;
	width: 700px;
	color: #333;
}

legend {
	color: #06c;
	font-weight: 800;
	background: #fff;
}

.menubar {
	width: 100px;
	cursor: hand;
}
-->
</style>
	<body>
		<%@ include file="/messages.jsp"%>
		<s:form name="formpage" action="order_listUserOrder" namespace="/seal">
			<div>
				<s:token></s:token>
				<table  class="tb_input" border="0" cellpadding="0"
					cellspacing="1">
					<tr>
						<td align="right" width="60">
							日期：
						</td>
						<td width="270">
							<input type="text" id="beginDate" name="orderInfoDto.beginDate"
								value='<s:date name="#request.orderInfoDto.beginDate" format="yyyy-MM-dd" />'
								size="15"
								onfocus="WdatePicker({isShowWeek:true,errDealMode:1,readOnly:true})"
								style="WIDTH: 120px; border: #999 1px solid; height: 20px; background: #fff url(<%=request.getContextPath()%>/js/My97DatePicker/skin/datePicker.gif) no-repeat right;" />
							至
							<input type="text" id="endDate" name="orderInfoDto.endDate"
								value='<s:date name="#request.orderInfoDto.endDate" format="yyyy-MM-dd" />'
								size="15"
								onfocus="WdatePicker({isShowWeek:true,errDealMode:1,readOnly:true})"
								style="WIDTH: 120px; border: #999 1px solid; height: 20px; background: #fff url(<%=request.getContextPath()%>/js/My97DatePicker/skin/datePicker.gif) no-repeat right;" />
						</td>
						<td  width="80" align="right">
							订单号：
						</td>
						<td width="130">
							<input type="text" size="16" maxlength="17" id="txtOrderId"
								name="orderInfoDto.orderId" value="${orderInfoDto.orderId }" />
						</td>
						<td  align="left">
							&nbsp;&nbsp;<input type="submit" id="ok" name="Submit" class="button"
								value=" 查 询 " />
						</td>
					</tr>
				</table>

				<table align="center" width="100%" class="tb_datalist">
					<tr class="tr_title">
						<td>
							订单号
						</td>
						<td>
							订单日期
						</td>
						<td>
							产品名称
						</td>
						<td>
							型号
						</td>
						<td>
							订购数量
						</td>
						<td>
							订单金额
						</td>
						<td>
							订单状态
						</td>
						<td>
							操作
						</td>
					</tr>
					<s:iterator value="#request.orderList" id="ca">
						<tr onMouseOver="javascript:this.className='tr_selected';"
							onMouseOut="javascript:this.className='tr_even';">
							<td>
								<a
									href="<s:url action="order_custViewPage">
									<s:param name="orderId"><s:property value="#ca.id"/></s:param>
									</s:url>">
									<s:property value="#ca.id" /> </a>
							</td>
							<td>
								<s:date name="#ca.createDate" format="yyyy-MM-dd HH:mm" />
							</td>
							<td>
								<s:property value="#ca.productName" />
							</td>
							<td>
								<s:property value="#ca.type" />
							</td>
							<td align="right">
								<s:property value="#ca.amount" />
							</td>
							<td align="right">
								<s:property value="#ca.totalprice" />
							</td>
							<td align="center">
								<s:property value="showStatus(#ca.status)" />
							</td>
							<td align="center">
								<!-- 处于待审核时，用户可取消订单 -->
								<s:if test='"A00"== #ca.status'>
									<a
										href="<s:url action="order_cancelOrder"><s:param name="orderId"><s:property value="#ca.id"/></s:param></s:url>">
										撤消订单 </a>
								</s:if>
								<a
									href="<s:url action="order_custViewPage">
								<s:param name="orderId"><s:property value="#ca.id"/></s:param>
									</s:url>">
									查看 </a>
							</td>
						</tr>
					</s:iterator>
					<s:property value="#request.allowpage" escape="false" />
				</table>
			</div>
		</s:form>
	</body>
</html>
